﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Hotel.Models.Entity;
using Hotel.Models.DataAccess;

namespace Hotel.Models.Services
{
    public class RoomTypeService
    {
        public static List<RoomType> GetListRoomType()
        {
            return DARoomType.GetListRoomType(0);
        }
        public static bool DeleteRoomType(int roomTypeId)
        {
            return DARoomType.DeleteRoomType(roomTypeId);        
        }
        public static bool SaveRoomType(RoomType roomType, bool isUpdate)
        {
            return DARoomType.SaveRoomType(roomType, isUpdate);
        }
        public static RoomType GetRoomTypeDetail(int roomTypeId)
        {
            return DARoomType.GetListRoomType(roomTypeId)[0];
        }
    }
}